package com.xishu.dao.jpa;

import com.xishu.entity.foodPandaOrder.FoodPandaOrder;
import org.hibernate.sql.Select;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface FoodPandaOrderDao extends JpaRepository<FoodPandaOrder, Long>, JpaSpecificationExecutor<FoodPandaOrder> {
    @Query(value = "select 1 from foodPanda_order f where f.code = :code")
    public Integer isexist(String code);
}
